package com.dkd.sbtz.domain.vo;

import com.dkd.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class RehomeByRecreateDTO {
    private Long nodeId;              // 当前节点
    private Long newParentId;         // 新父（根=0）
    private Boolean keepCode = true;  // 是否沿用旧编码，默认 true

    /** 可选：覆盖旧节点属性，不传则延用旧值 */
    private OverrideLayer override;

    @Data
    public static class OverrideLayer {
        private String nodeType;      // 不传则沿用旧 nodeType
        private String name;          // 不传则沿用旧 name
        private String code;          // keepCode=false 时通常置 null
        private Long spareId;         // 可选：重新挂一个备件
        private String remark;
        private String specification;
        private String model;
        private String material;
        private String power;
        private String brand;
        private String manufacturer;
        private Integer isSpecial = 0;
        private Integer deptId;
        private Integer status = 0;
        private List<Long> spareIds;

        private String mokuai;
        private String area;
        private String beType;
        private String designTemp;
        private String designPress;
        private String motorPower;
        private String mixingType;
        private String unit;
        private Integer quantity;
        private BigDecimal amount;

        private List<RouteCreateDTO.SpareRelation> spareRelations;
        private List<RouteCreateDTO.SpareCustom> spareCustom;
    }

}